<%include header.ejs %>

<form method="post" action="/edit/<%= post.name %>/<%= post.time.minute %>/<%= post.title %>"><br>
    <br>
    <br>
    <div class="row control-group">
        <div class="form-group col-xs-12 floating-label-form-group controls">
            <h2>标题：</h2>
            <input style="color: burlywood" type="text" class="form-control" value="<%= post.title %>" id="name" name="title">
        </div>
    </div>
    <div class="row control-group">
        <div class="form-group col-xs-12 floating-label-form-group controls">
            <h2>标签：</h2>
            <input type="text" name="tag1" value="<%= post.tags[0] %>" disabled="disabled" />
            <input type="text" name="tag2" value="<%= post.tags[1] %>" disabled="disabled" />
            <input type="text" name="tag3" value="<%= post.tags[2] %>" disabled="disabled" /><br />
        </div>
    </div>
    <div class="row control-group">
        <div class="form-group col-xs-12 floating-label-form-group controls">
            <h2>正文：</h2>
            <textarea style="color: burlywood" rows="12" class="form-control" id="message" name="post"><%= post.post %></textarea>
        </div>
    </div>
    <input type="submit" class="btn btn-success btn-lg" value="保存修改" />
</form>
<%include footer.ejs %>